﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_Barcode : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_Barcode", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_Barcode", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_Barcode", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_Barcode", "UserName");

        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("mdc_Barcode", "No");

        [Column]
        public string Plant { get { return _Plant; } set { _Plant = value; EntityState.FieldChange("Plant"); } }
        private string _Plant;
        public static FieldInfo plant = new FieldInfo("mdc_Barcode", "Plant");

        [Column]
        public string SKU_Code { get { return _SKU_Code; } set { _SKU_Code = value; EntityState.FieldChange("SKU_Code"); } }
        private string _SKU_Code;
        public static FieldInfo sku_code = new FieldInfo("mdc_Barcode", "SKU_Code");

        [Column]
        public string SAP_Code { get { return _SAP_Code; } set { _SAP_Code = value; EntityState.FieldChange("SAP_Code"); } }
        private string _SAP_Code;
        public static FieldInfo sap_code = new FieldInfo("mdc_Barcode", "SAP_Code");

        [Column]
        public string Prd_Grp { get { return _Prd_Grp; } set { _Prd_Grp = value; EntityState.FieldChange("Prd_Grp"); } }
        private string _Prd_Grp;
        public static FieldInfo prd_grp = new FieldInfo("mdc_Barcode", "Prd_Grp");

        [Column]
        public string Capacity { get { return _Capacity; } set { _Capacity = value; EntityState.FieldChange("Capacity"); } }
        private string _Capacity;
        public static FieldInfo capacity = new FieldInfo("mdc_Barcode", "Capacity");

        [Column]
        public string Unit { get { return _Unit; } set { _Unit = value; EntityState.FieldChange("Unit"); } }
        private string _Unit;
        public static FieldInfo unit = new FieldInfo("mdc_Barcode", "Unit");

        [Column]
        public string Label_Type { get { return _Label_Type; } set { _Label_Type = value; EntityState.FieldChange("Label_Type"); } }
        private string _Label_Type;
        public static FieldInfo label_type = new FieldInfo("mdc_Barcode", "Label_Type");

        [Column]
        public string Label { get { return _Label; } set { _Label = value; EntityState.FieldChange("Label"); } }
        private string _Label;
        public static FieldInfo label = new FieldInfo("mdc_Barcode", "Label");

        [Column]
        public string Stadard { get { return _Stadard; } set { _Stadard = value; EntityState.FieldChange("Stadard"); } }
        private string _Stadard;
        public static FieldInfo stadard = new FieldInfo("mdc_Barcode", "Stadard");

        [Column]
        public string StadardIs { get { return _StadardIs; } set { _StadardIs = value; EntityState.FieldChange("StadardIs"); } }
        private string _StadardIs;
        public static FieldInfo stadardis = new FieldInfo("mdc_Barcode", "StadardIs");

        [Column]
        public string Quarantee { get { return _Quarantee; } set { _Quarantee = value; EntityState.FieldChange("Quarantee"); } }
        private string _Quarantee;
        public static FieldInfo quarantee = new FieldInfo("mdc_Barcode", "Quarantee");

        [Column]
        public string SKU { get { return _SKU; } set { _SKU = value; EntityState.FieldChange("SKU"); } }
        private string _SKU;
        public static FieldInfo sku = new FieldInfo("mdc_Barcode", "SKU");

        [Column]
        public string EAN { get { return _EAN; } set { _EAN = value; EntityState.FieldChange("EAN"); } }
        private string _EAN;
        public static FieldInfo ean = new FieldInfo("mdc_Barcode", "EAN");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_Barcode", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_Barcode", "Status");
    }
}
